const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');
var schema_product   = new mongoose.Schema( { name:String,title:String,pic:String,price:Number,number:Number,type:String,comments:String});  //1.电器   2.生活用品      11.家用电器 12.工业电器  13.数码电器    21.日用品    22.饮食用品   23.交通出行用品
schema_product.plugin(mongoosePaginate);
const Product        = mongoose.model('Product',schema_product,'product');
      module.exports = Product;